package com.learn.netty.tomcat.servlet;

import com.learn.netty.tomcat.http.GPRequest;
import com.learn.netty.tomcat.http.GPResponse;
import com.learn.netty.tomcat.http.GPServlet;

/**
 * 第一个Servlet
 *
 * @author 荀彧 2020/12/26
 */
public class FirstServlet extends GPServlet {
    public void doGet(GPRequest request, GPResponse response) throws Exception {
        doPost(request,response);
    }

    public void doPost(GPRequest request, GPResponse response) throws Exception {
        response.write("this is the first Servlet");
    }
}

